﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopicClass.aspx.cs" Inherits="HFWebManage.News.TopicClass" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <link href="../css/main.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="../js/ManagerFunction.js"></script>
</head>
<form id="theForm" runat="server">
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <br>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center"
        border="0">
        
        <tr>
            <th colspan="3">
                增加/修改   新闻专题</th>
        </tr>
        <tr>
            <td class="usertablerow2" width="15%">专题标题：</td>
            <td class="usertablerow2">
                <asp:TextBox ID="lblTopicName" runat="server" Width="216px" ></asp:TextBox>
            </td>
            <td class="usertablerow2" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1">&nbsp;
                </td>
            <td class="usertablerow1">
                <div align="left">
                <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click"/>
                    <asp:HiddenField ID="IDS" runat="server" />
                </div>
            </td>
            <td class="usertablerow1">&nbsp;</td>
        </tr>
        
    </table>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <th colspan="3">新闻专题</th>
        </tr>
        <tr>
            <td class="usertablerow3" width="5%"><b>ID</b></td>
            <td class="usertablerow3" width="80%"><b>专题标题</b></td>
            <td class="usertablerow3" width="15%"><b>操作</b></td>
        </tr>
        
        <%
            string stylestr = "usertablerow1";
            foreach (hf.Model.TopicClass i in list)
            { %>
        <tr>
               <td class="<%=stylestr %>"><%=i.ID %></td>
               <td class="<%=stylestr %>"><%=i.TopicName%></td>
               <td class="<%=stylestr %>"><a href="TopicClass.aspx?action=modify&ID=<%=i.ID %>">修改</a> <a onclick="return ConfirmDel('确定删除吗？');" href="TopicClass.aspx?action=delete&ID=<%=i.ID %>">删除</a></td>
        </tr>
        <%
                if (stylestr == "usertablerow1")
                {
                    stylestr = "usertablerow2";
                }else{
                    stylestr = "usertablerow1";
                }
            } %>
    </table>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <td class="usertablerow1" >
                <asp:Label ID="pager" runat="server" Text=""></asp:Label></td>
        </tr>
    </table>
    <br />
</body>
</form>
</html>

